package aos.ydksxt.dao;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Stiofan on 2017/1/14.
 */
@Entity
@Table(name = "DJ_RYXX")
public class DjRyxx {
    private BigDecimal djxh;
    private String nsrsbh;
    private String nsrmc;
    private String lxrxm;
    private String lxrsfzjlxDm;
    private String lxrsfzjhm;
    private String lxrgddh;
    private String lxryddh;
    private String lxrdzXzqhdsDm;
    private String lxrdzXzqhxqDm;
    private String lxrdzJdxzDm;
    private String lxrdzSqjqDm;
    private String lxrdzDlxdDm;
    private String lxrdzLh;
    private String zgswjgDm;
    private String zgswskfjDm;
    private String ssglyDm;
    private String sjlybz;
    private String sjgsdq;
    private String lrrDm;
    private Timestamp lrrq;
    private String xgrDm;
    private Timestamp xgrq;
    private String yxbz;
    private String djlxDm;

    @Id
    @Column(name = "DJXH", nullable = false, precision = 0)
    public BigDecimal getDjxh() {
        return djxh;
    }

    public void setDjxh(BigDecimal djxh) {
        this.djxh = djxh;
    }

    @Basic
    @Column(name = "NSRSBH", nullable = false, length = 20)
    public String getNsrsbh() {
        return nsrsbh;
    }

    public void setNsrsbh(String nsrsbh) {
        this.nsrsbh = nsrsbh;
    }

    @Basic
    @Column(name = "NSRMC", nullable = false, length = 99)
    public String getNsrmc() {
        return nsrmc;
    }

    public void setNsrmc(String nsrmc) {
        this.nsrmc = nsrmc;
    }

    @Basic
    @Column(name = "LXRXM", nullable = true, length = 12)
    public String getLxrxm() {
        return lxrxm;
    }

    public void setLxrxm(String lxrxm) {
        this.lxrxm = lxrxm;
    }

    @Basic
    @Column(name = "LXRSFZJLX_DM", nullable = true, length = 3)
    public String getLxrsfzjlxDm() {
        return lxrsfzjlxDm;
    }

    public void setLxrsfzjlxDm(String lxrsfzjlxDm) {
        this.lxrsfzjlxDm = lxrsfzjlxDm;
    }

    @Basic
    @Column(name = "LXRSFZJHM", nullable = true, length = 20)
    public String getLxrsfzjhm() {
        return lxrsfzjhm;
    }

    public void setLxrsfzjhm(String lxrsfzjhm) {
        this.lxrsfzjhm = lxrsfzjhm;
    }

    @Basic
    @Column(name = "LXRGDDH", nullable = true, length = 20)
    public String getLxrgddh() {
        return lxrgddh;
    }

    public void setLxrgddh(String lxrgddh) {
        this.lxrgddh = lxrgddh;
    }

    @Basic
    @Column(name = "LXRYDDH", nullable = true, length = 11)
    public String getLxryddh() {
        return lxryddh;
    }

    public void setLxryddh(String lxryddh) {
        this.lxryddh = lxryddh;
    }

    @Basic
    @Column(name = "LXRDZ_XZQHDS_DM", nullable = true, length = 6)
    public String getLxrdzXzqhdsDm() {
        return lxrdzXzqhdsDm;
    }

    public void setLxrdzXzqhdsDm(String lxrdzXzqhdsDm) {
        this.lxrdzXzqhdsDm = lxrdzXzqhdsDm;
    }

    @Basic
    @Column(name = "LXRDZ_XZQHXQ_DM", nullable = true, length = 6)
    public String getLxrdzXzqhxqDm() {
        return lxrdzXzqhxqDm;
    }

    public void setLxrdzXzqhxqDm(String lxrdzXzqhxqDm) {
        this.lxrdzXzqhxqDm = lxrdzXzqhxqDm;
    }

    @Basic
    @Column(name = "LXRDZ_JDXZ_DM", nullable = true, length = 9)
    public String getLxrdzJdxzDm() {
        return lxrdzJdxzDm;
    }

    public void setLxrdzJdxzDm(String lxrdzJdxzDm) {
        this.lxrdzJdxzDm = lxrdzJdxzDm;
    }

    @Basic
    @Column(name = "LXRDZ_SQJQ_DM", nullable = true, length = 11)
    public String getLxrdzSqjqDm() {
        return lxrdzSqjqDm;
    }

    public void setLxrdzSqjqDm(String lxrdzSqjqDm) {
        this.lxrdzSqjqDm = lxrdzSqjqDm;
    }

    @Basic
    @Column(name = "LXRDZ_DLXD_DM", nullable = true, length = 11)
    public String getLxrdzDlxdDm() {
        return lxrdzDlxdDm;
    }

    public void setLxrdzDlxdDm(String lxrdzDlxdDm) {
        this.lxrdzDlxdDm = lxrdzDlxdDm;
    }

    @Basic
    @Column(name = "LXRDZ_LH", nullable = true, length = 60)
    public String getLxrdzLh() {
        return lxrdzLh;
    }

    public void setLxrdzLh(String lxrdzLh) {
        this.lxrdzLh = lxrdzLh;
    }

    @Basic
    @Column(name = "ZGSWJG_DM", nullable = true, length = 11)
    public String getZgswjgDm() {
        return zgswjgDm;
    }

    public void setZgswjgDm(String zgswjgDm) {
        this.zgswjgDm = zgswjgDm;
    }

    @Basic
    @Column(name = "ZGSWSKFJ_DM", nullable = true, length = 11)
    public String getZgswskfjDm() {
        return zgswskfjDm;
    }

    public void setZgswskfjDm(String zgswskfjDm) {
        this.zgswskfjDm = zgswskfjDm;
    }

    @Basic
    @Column(name = "SSGLY_DM", nullable = true, length = 11)
    public String getSsglyDm() {
        return ssglyDm;
    }

    public void setSsglyDm(String ssglyDm) {
        this.ssglyDm = ssglyDm;
    }

    @Basic
    @Column(name = "SJLYBZ", nullable = true, length = 4)
    public String getSjlybz() {
        return sjlybz;
    }

    public void setSjlybz(String sjlybz) {
        this.sjlybz = sjlybz;
    }

    @Basic
    @Column(name = "SJGSDQ", nullable = true, length = 11)
    public String getSjgsdq() {
        return sjgsdq;
    }

    public void setSjgsdq(String sjgsdq) {
        this.sjgsdq = sjgsdq;
    }

    @Basic
    @Column(name = "LRR_DM", nullable = false, length = 11)
    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    @Basic
    @Column(name = "LRRQ", nullable = false)
    public Timestamp getLrrq() {
        return lrrq;
    }

    public void setLrrq(Timestamp lrrq) {
        this.lrrq = lrrq;
    }

    @Basic
    @Column(name = "XGR_DM", nullable = true, length = 11)
    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    @Basic
    @Column(name = "XGRQ", nullable = true)
    public Timestamp getXgrq() {
        return xgrq;
    }

    public void setXgrq(Timestamp xgrq) {
        this.xgrq = xgrq;
    }

    @Basic
    @Column(name = "YXBZ", nullable = false, length = 1)
    public String getYxbz() {
        return yxbz;
    }

    public void setYxbz(String yxbz) {
        this.yxbz = yxbz;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DjRyxx djRyxx = (DjRyxx) o;

        if (djxh != null ? !djxh.equals(djRyxx.djxh) : djRyxx.djxh != null) return false;
        if (nsrsbh != null ? !nsrsbh.equals(djRyxx.nsrsbh) : djRyxx.nsrsbh != null) return false;
        if (nsrmc != null ? !nsrmc.equals(djRyxx.nsrmc) : djRyxx.nsrmc != null) return false;
        if (lxrxm != null ? !lxrxm.equals(djRyxx.lxrxm) : djRyxx.lxrxm != null) return false;
        if (lxrsfzjlxDm != null ? !lxrsfzjlxDm.equals(djRyxx.lxrsfzjlxDm) : djRyxx.lxrsfzjlxDm != null) return false;
        if (lxrsfzjhm != null ? !lxrsfzjhm.equals(djRyxx.lxrsfzjhm) : djRyxx.lxrsfzjhm != null) return false;
        if (lxrgddh != null ? !lxrgddh.equals(djRyxx.lxrgddh) : djRyxx.lxrgddh != null) return false;
        if (lxryddh != null ? !lxryddh.equals(djRyxx.lxryddh) : djRyxx.lxryddh != null) return false;
        if (lxrdzXzqhdsDm != null ? !lxrdzXzqhdsDm.equals(djRyxx.lxrdzXzqhdsDm) : djRyxx.lxrdzXzqhdsDm != null)
            return false;
        if (lxrdzXzqhxqDm != null ? !lxrdzXzqhxqDm.equals(djRyxx.lxrdzXzqhxqDm) : djRyxx.lxrdzXzqhxqDm != null)
            return false;
        if (lxrdzJdxzDm != null ? !lxrdzJdxzDm.equals(djRyxx.lxrdzJdxzDm) : djRyxx.lxrdzJdxzDm != null) return false;
        if (lxrdzSqjqDm != null ? !lxrdzSqjqDm.equals(djRyxx.lxrdzSqjqDm) : djRyxx.lxrdzSqjqDm != null) return false;
        if (lxrdzDlxdDm != null ? !lxrdzDlxdDm.equals(djRyxx.lxrdzDlxdDm) : djRyxx.lxrdzDlxdDm != null) return false;
        if (lxrdzLh != null ? !lxrdzLh.equals(djRyxx.lxrdzLh) : djRyxx.lxrdzLh != null) return false;
        if (zgswjgDm != null ? !zgswjgDm.equals(djRyxx.zgswjgDm) : djRyxx.zgswjgDm != null) return false;
        if (zgswskfjDm != null ? !zgswskfjDm.equals(djRyxx.zgswskfjDm) : djRyxx.zgswskfjDm != null) return false;
        if (ssglyDm != null ? !ssglyDm.equals(djRyxx.ssglyDm) : djRyxx.ssglyDm != null) return false;
        if (sjlybz != null ? !sjlybz.equals(djRyxx.sjlybz) : djRyxx.sjlybz != null) return false;
        if (sjgsdq != null ? !sjgsdq.equals(djRyxx.sjgsdq) : djRyxx.sjgsdq != null) return false;
        if (lrrDm != null ? !lrrDm.equals(djRyxx.lrrDm) : djRyxx.lrrDm != null) return false;
        if (lrrq != null ? !lrrq.equals(djRyxx.lrrq) : djRyxx.lrrq != null) return false;
        if (xgrDm != null ? !xgrDm.equals(djRyxx.xgrDm) : djRyxx.xgrDm != null) return false;
        if (xgrq != null ? !xgrq.equals(djRyxx.xgrq) : djRyxx.xgrq != null) return false;
        if (yxbz != null ? !yxbz.equals(djRyxx.yxbz) : djRyxx.yxbz != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = djxh != null ? djxh.hashCode() : 0;
        result = 31 * result + (nsrsbh != null ? nsrsbh.hashCode() : 0);
        result = 31 * result + (nsrmc != null ? nsrmc.hashCode() : 0);
        result = 31 * result + (lxrxm != null ? lxrxm.hashCode() : 0);
        result = 31 * result + (lxrsfzjlxDm != null ? lxrsfzjlxDm.hashCode() : 0);
        result = 31 * result + (lxrsfzjhm != null ? lxrsfzjhm.hashCode() : 0);
        result = 31 * result + (lxrgddh != null ? lxrgddh.hashCode() : 0);
        result = 31 * result + (lxryddh != null ? lxryddh.hashCode() : 0);
        result = 31 * result + (lxrdzXzqhdsDm != null ? lxrdzXzqhdsDm.hashCode() : 0);
        result = 31 * result + (lxrdzXzqhxqDm != null ? lxrdzXzqhxqDm.hashCode() : 0);
        result = 31 * result + (lxrdzJdxzDm != null ? lxrdzJdxzDm.hashCode() : 0);
        result = 31 * result + (lxrdzSqjqDm != null ? lxrdzSqjqDm.hashCode() : 0);
        result = 31 * result + (lxrdzDlxdDm != null ? lxrdzDlxdDm.hashCode() : 0);
        result = 31 * result + (lxrdzLh != null ? lxrdzLh.hashCode() : 0);
        result = 31 * result + (zgswjgDm != null ? zgswjgDm.hashCode() : 0);
        result = 31 * result + (zgswskfjDm != null ? zgswskfjDm.hashCode() : 0);
        result = 31 * result + (ssglyDm != null ? ssglyDm.hashCode() : 0);
        result = 31 * result + (sjlybz != null ? sjlybz.hashCode() : 0);
        result = 31 * result + (sjgsdq != null ? sjgsdq.hashCode() : 0);
        result = 31 * result + (lrrDm != null ? lrrDm.hashCode() : 0);
        result = 31 * result + (lrrq != null ? lrrq.hashCode() : 0);
        result = 31 * result + (xgrDm != null ? xgrDm.hashCode() : 0);
        result = 31 * result + (xgrq != null ? xgrq.hashCode() : 0);
        result = 31 * result + (yxbz != null ? yxbz.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "DJLX_DM", nullable = true, length = 4)
    public String getDjlxDm() {
        return djlxDm;
    }

    public void setDjlxDm(String djlxDm) {
        this.djlxDm = djlxDm;
    }
}
